<?php

   require("../../configuracion.php");
   $idSysSection = $sectionCampCorreo;
   $path = "../../";
   require("../../application-top.php");
   $id_CampaniaCP = $_GET['id_CampaniaCP'];
   
   
    $query = "select ";
    $query .= " st_NombreCampaniaCP, st_StatusCampania ";
    $query .= " from tbl_CampaniasCorreoPostal ";
    $query .= " INNER JOIN cat_StatusCampania ON tbl_CampaniasCorreoPostal.id_StatusCampania = cat_StatusCampania.id_StatusCampania ";
    $query .= " where tbl_CampaniasCorreoPostal.id_CampaniaCorreoPostal = '" . $id_CampaniaCP . "' ";

    $result = mssql_query ($query);
    $row = mssql_fetch_object($result);

?>

<html>
<head>
  <title><?= $instanciaECRM ?></title>
  <link rel="stylesheet" href="../../styles/style.css" type="text/css">
  <script type="text/javascript" src="../../scripts/dynlayer.js"></script>
  <script type="text/javascript" language="JavaScript">
function CheckRequiredFields() {
var errormessage = new String();
// Put field checks below this point.

if(WithoutContent(document.forms[0].archivo.value))
	{ errormessage += "\n\nPor favor, seleccione un archivo para cargar."; }

// Put field checks above this point.
if(errormessage.length > 2) {
	alert('NOTA:' + errormessage);
	} else {
		document.forms[0].submit();
	}	
} // end of function CheckRequiredFields()


function WithoutContent(ss) {
if(ss.length > 0) { return false; }
return true;
}


</script>

</head>
<body leftmargin="0" class="mainBackground" topmargin="0" marginwidth="0" marginheight="0">
<table width="100" border="0" cellpadding="0" cellspacing="0">
  <tr><td><img src="../../images/headerBar.gif" width="590" height="60" alt=""></td></tr>
  <tr>
    <td><table width="800" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td bgcolor="#FFFFFF" valign="top" height="400">
<form action='correo_cargaretro.php' method='post' name='formulario' enctype='multipart/form-data'  onSubmit="return CheckRequiredFields()">
<input name="id_CampaniaCP" type="hidden" value="<?= $id_CampaniaCP ?>">
<input name="nombreCampaniaCP" type="hidden" value="<?= $row->st_NombreCampaniaCP ?>">
<input name="cargar" type="hidden" value="yes">
<table border="0" cellpadding="5" cellspacing="0" width="750">
  <tr><td colspan="2"><table border="0" cellpadding="0" cellspacing="0" width="100%">
    <tr><td colspan="2"><img src="images/spacer.gif" height="10" width="1" alt=""></td></tr><tr><td><strong class="pageTitle">Campa&ntilde;as Correo Postal</strong><br><strong class="pageSubtitle">Retroalimentaci&oacute;n de campa&ntilde;a Correo Postal</strong></td><td align="right"><a href="http://www.cacto.com/" target="_blank"><img src="../../images/trademarkCacto.gif" alt="Cacto" border="0"></a><br>
<strong class="systemTitle"><?= $instanciaECRM ?></strong><br>Perfil <strong><?= $PerfilUsuario ?></strong></td></tr>
  </table></td></tr>
  <tr><td>
    <table border="0" cellpadding="5" cellspacing="1" class="mainTableBG">
      <tr class="answerCellBG">
        <td><img src="../../images/icArrowGo.gif" height="13" width="13" alt=""></td>
        <td><a href="correo_detalle.php?id_CampaniaCP=<?= $id_CampaniaCP?>" target="content">Regresar</a></td>
      </tr>
    </table>
  </td></tr>
  <tr>
  <td valign="top" width="100%">
    <table border="0" cellpadding="0" cellspacing="0" width="100%">
      <tr><td>
        <table border="0" cellpadding="0" cellspacing="0" width="100%">
        <tr><td colspan="2">
        <table border="0" cellpadding="5" cellspacing="1" class="secTableBG">

    
          <tr class="mainTableBG"><td class="secTableTitle" colspan="2">Correo&nbsp;Postal&nbsp;<strong><?= $row->st_NombreCampaniaCP ?></strong></td></tr>
          <tr class="answerCellBG"><td width="110" class="conceptCellBG">Status:</td><td><?= $row->st_StatusCampania ?></td></tr>
		 <tr class="answerCellBG"><td class="conceptCellBG" colspan="2"><strong>Seleccione&nbsp;el&nbsp;tipo&nbsp;de&nbsp;Retroalimentaci&oacute;n</strong></td></tr>
		 <tr class="answerCellBG"><td width="110"  class="conceptCellBG">Archivo:</td><td><input name="archivo" type="file" size="50"></td></tr>
        </table>
        </td></tr>
        <tr><td><img src="../../images/spacer.gif" height="10" width="1" alt=""></td></tr>
        </table>
      </td></tr>
      <tr><td><img src="../../images/spacer.gif" height="10" width="1" alt=""></td></tr>
      <tr><td>
        <table border="0" cellpadding="5" cellspacing="1" class="mainTableBG">
          <tr class="answerCellBG">
            <td><img src="../../images/icArrowGo.gif" height="13" width="13" alt=""></td>
            <td><a href="formatoRetroWK.xls" target="content">Ver formato</a></td>
            <td><img src="../../images/icArrowGo.gif" height="13" width="13" alt=""></td>
            <!--<td><a href="javascript:document.forms[0].submit();" target="content">Cargar Retroalimentaci&oacute;n</a></td>-->
	    <td><a href="#" target="content">Cargar Retroalimentaci&oacute;n</a></td>
          </tr>
        </table>
      </td></tr>
    </table>
  </td>
  </tr>
</table>

</form>

          </td>
        </tr>
      </table></td>
  </tr>
</table>
<br>
<br>
<br>
<table width="750" border="0" cellpadding="5" cellspacing="0">
  <tr>
    <td align="right"><span class="copyright"><?= $copyright ?></span></td>
  </tr>
</table>
</body></html>
